import React, { PureComponent } from 'react'
import { connect } from 'react-redux';
import store from '../store';
import { fetchHotSuggestsAction } from '../store/banners'

export class category extends PureComponent {
  componentDidMount() {
    this.props.fetchHotSuggest()
  }

  render() {
    return (
      <div>category</div>
    )
  }
}

const mapDispatchtoProps = (dispatch) => ({
  fetchHotSuggest() {
    store.dispatch(fetchHotSuggestsAction())
  }
})

export default connect(null,mapDispatchtoProps)(category)